#! /usr/bin/env python
#coding=utf-8



def task_develop_finished(sender, task, finish_date):
    from uliweb.orm import get_model
    import pickle
    from datetime import datetime
    from uliweb import request
    from uliweb import settings, functions
    from uliweb.utils.common import Serial
    from uliweb.core.html import Tag
    from uliweb import settings
    from uliweb.mail import Mail
    

    Risksolution = get_model('risksolution')
    

    risk_obj = Risksolution.filter(Risksolution.c.task_id == task.id)
    for obj in risk_obj:
        if obj.solution_mode == '1':
            obj.finish_date = finish_date
            obj.save()
